<?php

namespace api\controller;

use common\controller\VerifyController;
use common\service\TenantUserService;
use think\Request;
use think\Response;

class TenantUserController extends VerifyController
{
    protected $tenantUserService;

    /**
     * ContractTemplateController constructor.
     */
    public function __construct()
    {
        parent::__construct();
        $this->tenantUserService = TenantUserService::getInstance();
    }

    /**
     * 查询部门成员
     * @param Request $request
     * @return Response
     */
    public function tree(Request $request)
    {
        $res = $this->tenantUserService->tree($request->param()['param'] ?? []);
        return json(success_response("", $res));
    }
}
